package com.ww.springboot.boot.javabase.generics.demo2;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2022-05-05 10:48
 */
public class Main {

    public static void main(String[] args) {
        Test[] tests = new Test[10];
        Test<String> test = new Test<>();
        test.setT("ccc");

        Test<Integer> test2 = new Test<>();
        test2.setT(123);
        tests[0] = test;
        tests[1] = test2;
        System.out.println(tests[0].getT().getClass());
        System.out.println(tests[1].getT().getClass());
    }
}
